﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
CodeBehind="ProblemReportEditReport.aspx.cs" Inherits="WXYW.ProblemReportEditReport" ValidateRequest="false" %>
<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    管理资料/报告 - 管理资料
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">        
        <img src="image/topic.gif" alt="" />
        <asp:LinkButton ID="problemFileLnkBtn" runat="server" 
            onclick="problemFileLnkBtn_Click">附件</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/operateicon/check.gif" alt="" />
        <asp:LinkButton ID="okLinkButton" runat="server" onclick="okLinkButton_Click">更新</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" 
            onclick="backLinkButton_Click">返回</asp:LinkButton>
        &nbsp;&nbsp;
    </div>
    <table width="100%" style="line-height: 25px">
        <tr>
            <td style="width: 12%">
                报告类型:
            </td>
            <td style="width: 31%">
                <asp:DropDownList ID="reportTypeDDL" runat="server" DataTextField="Name" 
                    DataValueField="Name">
                </asp:DropDownList>
                <span style="color: Red">*</span>
            </td>
            <td style="width: 12%">
                产品线:
            </td>
            <td style="width: 45%">
                <asp:DropDownList ID="productLineTypeDDL" runat="server" DataTextField="Name" 
                    DataValueField="Name">
                </asp:DropDownList>
                <span style="color: Red">*</span>
            </td>
        </tr>       
        <tr>
            <td>
                产品型号:
            </td>
            <td>
                <asp:TextBox ID="productModelTxtBox" runat="server" Width="90%"></asp:TextBox><span
                    style="color: Red">*</span>
            </td>
            <td>
                产品版本:
            </td>
            <td>
                <asp:DropDownList ID="productVersionDDL" runat="server" DataTextField="Name" 
                    DataValueField="Name">
                </asp:DropDownList>
                <span style="color: Red">*</span>
            </td>
        </tr>
        <tr>
            <td>
                报告主题:
            </td>
            <td>
                <asp:TextBox ID="subjectTxtBox" runat="server" Width="90%" TextMode="MultiLine" Rows="3"></asp:TextBox><span
                    style="color: Red">*</span>
            </td>
            <td>
                查看权限:
            </td>
            <td>
                <asp:RadioButtonList ID="SecurityRadioButtonList" runat="server">
                    <asp:ListItem Text="DCN" Value="DCN" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="ASC" Value="ASC"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
                解决方案:
            </td>
            <td colspan="3">
                <asp:TextBox ID="solutionTxtBox" runat="server" Width="95%" TextMode="MultiLine"
                    Rows="3"></asp:TextBox><span style="color: Red">*</span>
            </td>
        </tr>
        <tr>
            <td>创建人:</td>
            <td><asp:Label ID="createByLabel" runat="server" Text=""></asp:Label></td>
            <td>创建日期:</td>
            <td><asp:Label ID="createDateLabel" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <asp:HiddenField ID="taskFileHF" runat="server" />
    <cc1:ModalPopupExtender ID="ReportFileModalPopupExtender" PopupControlID="ReportFilePanel" BackgroundCssClass="modalBackground"
        TargetControlID="taskFileHF" runat="server" Drag="true" PopupDragHandleControlID="ReportFileDragBar"
        CancelControlID="closeReportFileBtn" OnLoad="ModalPopupExtender1_Load">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="ReportFilePanel" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" runat="server" Width="500px">
        <!-- Header -->
        <div class="box-header" id="ReportFileDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                资料报告附件</h2>
        </div>
        <div class="functionPanel">
            <table width="100%">
                <tr>
                    <td>
                        <asp:GridView ID="ReportFileGridView" CssClass="tableList" BorderColor="#888888"
                            BorderWidth="1px" runat="server" AutoGenerateColumns="False" Width="100%" 
                            OnRowDataBound="ReportFileGridView_RowDataBound">
                            <Columns>
                                <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="IDLbl" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="文件名" DataField="FileName" />
                                <asp:TemplateField HeaderText="创建日期">
                                    <ItemTemplate>
                                        <%#Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                    <img src="image/operateicon/docview.gif" alt="" />
                                    <asp:HyperLink ID="ViewFileHyperLink" runat="server" Target="_blank">查看</asp:HyperLink>
                                    <img src="image/operateicon/docdelete.gif" alt="" />
                                    <asp:LinkButton ID="deleteFileLnBtn" OnClick="deleteFileLnBtn_click" CommandArgument='<%#Eval("ID") %>'
                                        runat="server">删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:FileUpload ID="ReportFileFileUpload" runat="server" />
                        <asp:Button ID="uploadReportFileBtn" runat="server" Text="上传" 
                            onclick="uploadReportFileBtn_Click" />
                    </td>
                </tr>
                <tr style="height: 25px" align="center">
                    <td>
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="closeReportFileBtn" runat="server">关闭</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
